<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'ext-icon-table_delete',plain:true"
onclick="update_items()">
	字段更新aa
</a>
<script type="text/javascript">
var update_items = function() {
	var grid = $('#grid');
	var array = grid.datagrid('getSelections');
	var id2 = "";
	var num = array.length; //获取要删除信息的个数
	if (num != "1") {
		slideMsg("请选择一条记录！");
		return;
	}
	id2 = array[0].code + "-" + array[0].dataSource + "-" + array[0].table;
	confirmUpdateItems(grid, '/metadata/updateItems/' + id2);
};
</script>